package com.servcice;

import com.dao.StudentDao;
import com.dto.BaseDto;
import com.entity.Student;
import com.page.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

public interface StudentService extends  AccountService{
    public BaseDto<Student> getAll() throws Exception;
    public int addStudent(Student student) throws Exception;
    public BaseDto<Student> getStudentsByPage(PageInfo pageInfo,String cacheId) throws Exception;
    public BaseDto<Student> searchStudentByName(String name,PageInfo pageInfo) throws Exception;
    public BaseDto selectStudentWithScsAndCourse(String sno)throws Exception;
    public BaseDto  studentChangeClazz(String sno,String newCno)throws Exception;
    //使用用户名登录
    public Student loginStudentByName(String name);
}
